<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>设备列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="../../css/public.css" media="all" />
    <link rel="stylesheet" href="../../css/leftnav.css" media="all" />
</head>
<body class="childrenBody">

<div class="layui-col-md2" style="width:200px"><!--学校导航-->
    <div style="background-color:#eeeeee;line-height: 40px;text-align: center; height: 40px;font-size: small;">学校导航</div>
    <!--学校教学楼导航栏开始-->
    <div style='border:0px;padding:3px; PADDING:0px; width:200px; height:685px; LINE-HEIGHT: 20px; overflow-y: auto; overflow-x: hidden;'>
        <div class="nav">
            <ul id="aat" class="ce" ></ul>
        </div>
    </div>
    <!--学校教学楼导航栏结束-->
</div>
<div class="layui-col-md7">
    <!--查询和工具栏开始-->
    <form class="layui-form " action="" method="post" id="searchFrm" lay-filter="searchFrm">
        <div class="layui-inline">
            <select name="onlineStatus" id="onlineStatus" >
                <option value='' selected disabled style="display: none;">选择在线状态</option>
                <option value="1">在线</option>
                <option value="0">离线</option>
            </select>
        </div>
        <div class="layui-inline">
            <input type="text" class="layui-input searchVal" placeholder="请输入所属网关" />
        </div>
        <button type="button" class="layui-btn search_btn" id="search_btn" lay-filter="search_btn"><span class="layui-icon layui-icon-search"></span>搜索</button>
        <div class="layui-inline" >
            <button type="button" class="layui-btn layui-btn-normal add_btn" id="add_btn" lay-filter="add_btn"><i class="layui-icon">&#xe608;</i>添加</button>
        </div>
    </form>
    <!--查询和工具栏结束-->
    <br><!--yw 分隔-->
    <table id="list" lay-filter="list"></table><!--yw 显示列表数据-->
    <!--行工具条-->
    <div id="listRowBar" style="display:none;">
        <a><i class="layui-icon" lay-event="edit">&#xe642;</i></a>
        <a><i class="layui-icon" lay-event="del">&#xe640;</i></a>
        <a><i class="layui-icon" lay-event="detail">&#xe60b;</i></a>
    </div>
    <!--行工具条-->
    <div id="listRowBar2" style="display:none;">
        <a data-method="setTop" lay-event="datastat" class="datastat"><i class="layui-icon" >&#xe60b;</i></a>
<!--        <a><i data-method="setTop" class="layui-icon" id="datastat" lay-event="datastat">&#xe60b;</i></a>-->
    </div>
</div>
<!-- 新增弹出层开始-->
<div style="display:none;padding:10px;" id="addDiv">
    <form action="" method="post" class="layui-form" id="dataFrm" lay-filter="dataFrm">
        <div class="layui-form-item">
            <label class="layui-form-label">学校</label>
            <div class="layui-input-block">
                <select name="schoolId" lay-filter="schoolId" id="schoolId">
                    <option value=""></option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">教学楼</label>
            <div class="layui-input-block">
                <select name="tbuildName" lay-filter="tbuildName" id="tbuildName">
                    <option value=""></option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">教室</label>
            <div class="layui-input-block">
                <select name="classroom" lay-filter="classroom" id="classroom">
                    <option value=""></option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color:red;">*</span>设备ID</label>
            <div class="layui-input-block">
                <input type="text" name="eqid" autocomplete="off" class="layui-input" id="eqid" lay-verify="required|lenLimit20">
            </div>
        </div>
        <!--<div class="layui-form-item">
            <label class="layui-form-label"><span style="color:red;">*</span>设备名称</label>
            <div class="layui-input-block">
                <input type="text" name="eqname" autocomplete="off" class="layui-input" id="eqname" lay-verify="required|len17">
            </div>
        </div>-->   <!--xqr-->
        <div class="layui-form-item">
            <label class="layui-form-label">设备类型</label>
            <div class="layui-input-block">
                <select name="eqtype" id="eqtype">
                    <!--<option value="RH9001">单键开关</option>
                    <option value="RH9002">双键开关</option>
                    <option value="RH9003">三键开关</option>
                    <option value="RH9004">五孔插座</option>
                    <option value="RH9005">10A移动插座</option>
                    <option value="RH9006">空调</option>
                    <option value="RH9007">窗帘</option>
                    <option value="RH9008">红外转发器</option>
                    <option value="RH9009">灯</option>
                    <option value="RH9010">吊扇</option>
                    <option value="RH9011">空气盒子</option>
                    <option value="RH9012">幕布</option>
                    <option value="RH9013">网关</option>
                    <option value="RH9014">音箱</option>-->
                    <!--xqr 设置eqType-->
                    <option value="单键开关">单键开关</option>
                    <option value="双键开关">双键开关</option>
                    <option value="三键开关">三键开关</option>
                    <option value="五孔插座">五孔插座</option>
                    <option value="10A移动插座">10A移动插座</option>
                    <option value="空调">空调</option>
                    <option value="窗帘">窗帘</option>
                    <option value="红外转发器">红外转发器</option>
                    <option value="灯">灯</option>
                    <option value="吊扇">吊扇</option>
                    <option value="空气盒子">空气盒子</option>
                    <option value="幕布">幕布</option>
                    <option value="网关">网关</option>
                    <option value="音箱">音箱</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color:red;">*</span>所属网关</label>
            <!--<div class="layui-input-block">
                <input placeholder="2C:4D:54:66:42:B8" type="text" name="afgateway"  id = "afgateway" class="layui-input" lay-verify="required|macAddress">
            </div>-->
            <!--根据教室显示可选网关-->
            <div class="layui-input-block">
                <select name="afgateway" lay-filter="afgateway" id="afgateway">
                    <option value=""></option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">在线状态</label>
            <div  class="layui-input-block">
                <select name="onlstatus"  id="onlstatus">
                    <option value="1">在线</option>
                    <option value="0">离线</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <div  style="text-align: center;">
                <button type="button" class="layui-btn" lay-submit id="doSubmitAdd" lay-filter="doSubmitAdd"><i class="layui-icon">&#xe654;</i>新增</button>
                <button type="reset" class="layui-btn layui-btn-warm" ><i class="layui-icon">&#xe669;</i>重置</button>
            </div>
        </div>
    </form>
</div>
<!-- 新增弹出层结束-->
<!-- 修改弹出层开始-->
<div style="display:none;padding:10px;" id="saveDiv">
    <form action="" method="post" class="layui-form" id="dataFrm" lay-filter="dataFrm">
        <div class="layui-form-item">
            <label class="layui-form-label">学校</label>
            <div class="layui-input-block">
                <select name="schoolId2" lay-filter="schoolId2" id="schoolId2">
                    <option value=""></option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">教学楼</label>
            <div class="layui-input-block">
                <select name="tbuildName2" lay-filter="tbuildName2" id="tbuildName2">
                    <option value=""></option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">教室</label>
            <div class="layui-input-block">
                <select name="classroom2" id="classroom2">
                    <option value=""></option>
                </select>
            </div>
        </div>
        <input type="hidden" id="eqid2" name="eqid2"><!--yw根据设备ID修改记录，不显示使用hidden-->
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color:red;">*</span>设备名称</label>
            <div class="layui-input-block">
                <input type="text" name="eqname2" autocomplete="off" class="layui-input" id="eqname2" lay-verify="required|len20">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">设备类型</label>
            <div class="layui-input-block">
                <select name="eqtype2" id="eqtype2">
                    <!--<option value="RH9001">单键开关</option>
                    <option value="RH9002">双键开关</option>
                    <option value="RH9003">三键开关</option>
                    <option value="RH9004">五孔插座</option>
                    <option value="RH9005">10A移动插座</option>
                    <option value="RH9006">空调</option>
                    <option value="RH9007">窗帘</option>
                    <option value="RH9008">红外转发器</option>
                    <option value="RH9009">灯</option>
                    <option value="RH9010">吊扇</option>
                    <option value="RH9011">空气盒子</option>
                    <option value="RH9012">幕布</option>
                    <option value="RH9013">网关</option>
                    <option value="RH9014">音箱</option>-->
                    <!--xqr 设置eqType-->
                    <option value="单键开关">单键开关</option>
                    <option value="双键开关">双键开关</option>
                    <option value="三键开关">三键开关</option>
                    <option value="五孔插座">五孔插座</option>
                    <option value="10A移动插座">10A移动插座</option>
                    <option value="空调">空调</option>
                    <option value="窗帘">窗帘</option>
                    <option value="红外转发器">红外转发器</option>
                    <option value="灯">灯</option>
                    <option value="吊扇">吊扇</option>
                    <option value="空气盒子">空气盒子</option>
                    <option value="幕布">幕布</option>
                    <option value="网关">网关</option>
                    <option value="音箱">音箱</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color:red;">*</span>所属网关</label>
            <div class="layui-input-block">
                <input type="text" name="afgateway2"  id = "afgateway2" class="layui-input" lay-verify="required|macAddress">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">在线状态</label>
            <div  class="layui-input-block">
                <select name="onlstatus2"  id="onlstatus2">
                    <option value="1">在线</option>
                    <option value="0">离线</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <div  style="text-align: center;">
                <button type="button" class="layui-btn" lay-submit id="doSubmitSave" lay-filter="doSubmitSave"><i class="layui-icon">&#xe605;</i>保存</button>
                <button type="reset" class="layui-btn layui-btn-warm" ><i class="layui-icon">&#xe669;</i>重置</button>
            </div>
        </div>
    </form>
</div>
<!-- 修改弹出层结束-->
<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="../../js/leftnav.js"></script> <!--左侧导航栏-->
<script type="text/javascript" src="deviceList.js"></script>
</body>
</html>
